home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 23
/
023.d81
/
return stripper
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
1KB
|
34 lines
60 printchr$(147)spc(12)chr$(17)"[210][197][212][213][210][206][160][211][212][210][201][208][208][197][210]"
65 printchr$(17)spc(7)"([195]) 1985 [211]tephen [211]. [204]evin"
70 printchr$(14)chr$(17)"[212]his program removes extra [[210][197][212][213][210][206]]'s"
80 print"from downloaded sequential files for"
90 print"further processing by easyscript or"
100 print"other word processors."
110 printchr$(17)"[197]nter the filename of the input (down-"
115 print"loaded) and the output files.";
120 print" [212]he output may also be directed to the"
140 print"printer in the downloaded format."
150 open15,8,15
160 input"input file name [157][157][157]";n$
170 open4,8,4,n$+",s,r":input#15,a,b$,c,d
175 ifathenprinta;b$;c;d:close4:goto160
180 input"output file name [157][157][157]";n$
190 open5,8,5,n$+",s,w":input#15,a,b$,c,d
195 ifathenprinta;b$;c;d:close5:goto180
200 input"output to printer, too? y/n n[157][157][157]";p$:p$=left$(p$,1)
210 ifp$<>"y"andp$<>"n"then200
220 ifp$="y"thenclose6:open6,4,7
230 printchr$(17)chr$(18)"[208]ress [198]7 key to abort."chr$(146)chr$(17)chr$(17)
240 b=0
250 get#4,a$:s=st:x$=right$(x$,2)+a$
260 getl$:ifl$=chr$(136)then340
270 ifp$="y"thenprint#6,a$;
280 ifb=1andleft$(x$,1)<>" "thenprint#5," ";:print" ";
290 ifa$<>chr$(13)thenprint#5,a$;:printa$;:b=0:goto330
300 b=b+1:ifb=2thenprint#5,a$;:printa$a$;:goto330
310 ifb=1then330
320 print#5,a$;:printa$;
330 ifs=0then250
340 ifp$="y"thenprint#6:close6
350 close4:print#5:close5:close15:load"hello connect",8